#!/bin/bash
cd ..
cd db
$PWD/../7z/7za a -r $PWD/backup/floreo-data-$(date +%Y%m%d-%H%M%S).7z $PWD/data
CLASSPATH=$PWD/lib/derby.jar:$PWD/lib/derbynet.jar
java -cp $CLASSPATH org.apache.derby.drda.NetworkServerControl start -h localhost -p 1527 &
cd ..
java -jar $PWD/floreo-0.1.jar
